import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
import Realtime from "../views/realtime/index.vue";
import GreenWave from "../views/green-wave/index.vue";
import CityRoad from "../views/city-road/index.vue";

const routes: Array<RouteRecordRaw> = [
    {
        path: "/",
        redirect: "/realtime",
    },
    {
        path: "/realtime",
        name: "Realtime",
        component: Realtime,
    },
    {
        path: "/greenwave",
        name: "GreenWave",
        component: GreenWave,
    },
    {
        path: "/cityroad",
        name: "CityRoad",
        component: CityRoad,
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
